package com.aaa.choose.service.impl;
import com.aaa.choose.dao.selectTypeDao;
import com.aaa.choose.service.SelectTypeService;
import com.aaa.entity.CarType;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author wys
 * @version 1.0
 * @date 2023/3/6 17:09
 */
@Service
public class SelectTypeServiceImpl implements SelectTypeService {
    @Autowired
    private selectTypeDao selectTypeDao;
    @Override
    public Result selectType() {
        List<CarType> carTypes = selectTypeDao.selectList(null);
        return new Result(200,"查询成功",carTypes);
    }
}
